package kdiaz.spring.bibliotecaweb.dao;

import java.util.ArrayList;
import java.util.List;
import kdiaz.spring.bibliotecaweb.model.Person;

/**
 *
 * @author kdiaz
 */
public class PersonDaoImpl implements PersonDao {

    public List<Person> getPeople() {
        List<Person> people = new ArrayList<Person>();

        Person person = new Person();
        person.setPersonId(1);
        person.setPersonName("Lennon");
        people.add(person);

        person = new Person();
        person.setPersonId(2);
        person.setPersonName("Juan");
        people.add(person);

        return people;
    }

}
